<?php

/**
 * Chart Service settings class
 *
 * @name Settings
 * @author DiMoN
 * @copyright Dmitry Pavlov
 */

class Settings
{
    const
    CHART_WEB_SERVICE = "",
    SERVICE_DIRECTORY = "/ChartService/",
    FILES_POSTFIX = ".php",
    CHART_FORMAT = ".png",
    DELETE_PERIOD = 24;

    public static $ChartDataXSDPath = "lib/xsd/ChartData.xsd";
    public static $DiagramsDirectory = "Diagrams/";
    public static $ChartsDirectory = "core/Charts/";
    public static $ChartTypesDirectory = "core/Charts/Types/";
    public static $ResultsChartDirectory = "_Results/";
    public static $XMLListChartsName = "ListCharts.xml";
    public static $InterfaceChartsName = "IChart.php";

    /**
     * Gets service HTTP Path
     *
     * @return string
     */
    public static function serviceHTTPPath()
    {
        return "http://" . $_SERVER['HTTP_HOST'] . self::SERVICE_DIRECTORY;
    }
}
?>
